package com.kawa.kemanage.service;

import com.kawa.kemanage.entity.ContentReview;
import com.kawa.kemanage.entity.News;
import com.kawa.kemanage.mapper.ContentReviewMapper;
import com.kawa.kemanage.mapper.NewsMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 内容审核服务接口
 */
public interface ContentReviewService {

    /**
     * 创建审核记录
     */
    boolean createReview(ContentReview review);

    /**
     * 审核内容
     */
    boolean reviewContent(ContentReview contentReview);

    /**
     * 分页查询审核列表
     */
    PageInfo<ContentReview> getReviewList(String status, Integer categoryId,
                                        String keyword, Integer page, Integer size);

    /**
     * 根据内容ID查询审核记录
     */
    ContentReview getReviewByContentId(Long contentId);

    /**
     * 根据审核ID查询审核详情
     */
    ContentReview getReviewById(Long reviewId);

    /**
     * 批量审核
     */
    boolean batchReview(List<Long> reviewIds, String status, String comments, Long reviewerId);
}
